//============================================================================
// Copyright (C) 2003-2013 Brett R. Jones 
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses 
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================
#pragma once

#pragma pack(push) 
#pragma pack(1)

class PktFrameSyncReq : public VxPktHdr
{
public:
	PktFrameSyncReq()
	{
		m_u16PktLen = sizeof( PktFrameSyncReq );
		m_u16PktType = PKT_TYPE_FRAME_SYNC_REQ;
		u16Flags = 0;			
		u32Frame = 0;			// frame number
		f32Time = 0.0f;			// time
	}

	//=== vars ===//
	U16		u16Flags;		
	U32		u32Frame;			// frame
	F32		f32Time;			// time
};


//============================================================================
class PktFrameSyncReply : public VxPktHdr
{
public:
	PktFrameSyncReply()
	{
		m_u16PktLen = sizeof( PktFrameSyncReply );
		m_u16PktType = PKT_TYPE_FRAME_SYNC_REPLY;
		u16Flags = 0;			
		u32Frame = 0;			// frame number
		f32Time = 0.0f;			// time
	}

	//=== vars ===//
	U16		u16Flags;		
	U32		u32Frame;			// frame
	F32		f32Time;			// time
};

#pragma pack(pop)